From 3fdf7c446c2d080ae17311f36e414d8f89c53ef1 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 17 Apr 2006 15:55:58 +0000 Subject: [PATCH] Correct math error in GPS_Math_Deg_To_DegMinSec. --- jeeps/gpsmath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jeeps/gpsmath.c b/jeeps/gpsmath.c index ac412f196..799147904 100644 --- a/jeeps/gpsmath.c +++ b/jeeps/gpsmath.c @@ -158,7 +158,8 @@ void GPS_Math_Deg_To_DegMinSec(double v, int32 *d, int32 *m, double *s) *d = (int32)v; t = (v -(double)*d) * (double)60.0; - *s = (t-(double)*m) * (double)60.0; + *m = (v-(double)*d) * (double)60.0; + *s = (t - (int32)t) * (double)60.0; if(*s>(double)59.999) { -- 2.30.2